import request from '@/utils/request'

// 查询XIRR计算明细列表
export function listXirrBaseDetails(query) {
  return request({
    url: '/details/xirrBaseDetails/list',
    method: 'get',
    params: query
  })
}

// 查询XIRR计算明细详细
export function getXirrBaseDetails(id) {
  return request({
    url: '/details/xirrBaseDetails/' + id,
    method: 'get'
  })
}

// 保存XIRR计算明细
export function saveXirrBaseDetails(data) {
  return request({
    url: '/details/xirrBaseDetails/save',
    method: 'post',
    data: data
  })
}

// 删除XIRR计算明细
export function delXirrBaseDetails(id) {
  return request({
    url: '/details/xirrBaseDetails/' + id,
    method: 'delete'
  })
}

// 导出XIRR计算明细
export function exportXirrBaseDetails(query) {
  return request({
    url: '/details/xirrBaseDetails/export',
    method: 'get',
    params: query
  })
}
